package com.ruoyi.project.drug.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class DrugPurchase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 单据ID */
    private String purId;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supId;

    /** 采购批发总额 */
    @Excel(name = "采购批发总额")
    private BigDecimal purTotal;

    /** 采购状态； 1未提交2待审核 3审核通过 4审核失败 5作废 6入库成功  */
    @Excel(name = "采购状态； 1未提交2待审核 3审核通过 4审核失败 5作废 6入库成功 ")
    private String purStatus;

    /** 采购者 */
    @Excel(name = "采购者")
    private String purName;

    /** 入库操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date putTime;

    private DrugSupplier drugSupplier;



    public DrugSupplier getDrugSupplier() {
        return drugSupplier;
    }

    public void setDrugSupplier(DrugSupplier drugSupplier) {
        this.drugSupplier = drugSupplier;
    }

    public void setPurId(String purId)
    {
        this.purId = purId;
    }

    public String getPurId()
    {
        return purId;
    }
    public void setSupId(Long supId)
    {
        this.supId = supId;
    }

    public Long getSupId()
    {
        return supId;
    }
    public void setPurTotal(BigDecimal purTotal)
    {
        this.purTotal = purTotal;
    }

    public BigDecimal getPurTotal()
    {
        return purTotal;
    }
    public void setPurStatus(String purStatus)
    {
        this.purStatus = purStatus;
    }

    public String getPurStatus()
    {
        return purStatus;
    }
    public void setPurName(String purName)
    {
        this.purName = purName;
    }

    public String getPurName()
    {
        return purName;
    }
    public void setPutTime(Date putTime)
    {
        this.putTime = putTime;
    }

    public Date getPutTime()
    {
        return putTime;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("purId", getPurId())
                .append("supId", getSupId())
                .append("purTotal", getPurTotal())
                .append("purStatus", getPurStatus())
                .append("purName", getPurName())
                .append("putTime", getPutTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("drugSupplier", getDrugSupplier())
                .toString();
    }
}
